package gui.login;

/**
 * user config class, holds all the user configuration info
 * @author Orit
 */

public class Config {
	
	private String userName;	//user name that saved in last connection 
	private String password;	//password that saved in last connection 
	private String hostName;	//host to communicate to server
	private int serverPort;		//server port to communicate to server
	
	
	/**
	 * constructor
	 * @param userName - user name
	 * @param password - password
	 * @param dropBoxPath - dropBox absolute path on user's computer
	 */
	public Config(String userName,String password) {
		this.userName=userName;
		this.password=password;
	}
	
	/**
	 * d.cont
	 */
	public Config() {		
	}
	
	/**
	 * password setter
	 * @param password user's password
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	
	/**
	 * user name setter
	 * @param userName user's name
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	/**
	 * user's password getter
	 * @return user's password
	 */
	public String getPassword() {
		return password;
	}
	
	/**
	 * user name getter
	 * @return user's nmae
	 */
	public String getUserName() {
		return userName;
	}
	
	/**
	 * get server's name
	 * @return server's name
	 */
	public String getHostName() {
		return hostName;
	}
	/**
	 * set server's name
	 * @param hostName server's name
	 */
	public void setHostName(String hostName) {
		this.hostName = hostName;
	}
	/**
	 * get server's port
	 * @return server's port
	 */
	public int getServerPort() {
		return serverPort;
	}
	/**
	 * set server's port
	 * @param serverPort server's port
	 */
	public void setServerPort(int serverPort) {
		this.serverPort = serverPort;
	}
	
	
}
